package com.jk.nav.service.impl;

import com.jk.nav.mapper.NavMapper;
import com.jk.nav.service.NavService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class NavServiceImpl implements NavService {

    @Autowired
    private NavMapper navMapper;

   /* @Override
    public List<NavBean> findProductNav() {
        int pid = 0;
        List<NavBean> list = findNode(pid);
        return list;
    }

    private List<NavBean> findNode(int pid) {
        List<NavBean> list = navMapper.findProductNav(pid);
        for (NavBean navBean : list) {
            List<NavBean> node = findNode(navBean.getId());
            navBean.setChildren(node);
        }
        return list;
    }*/
}
